package com.joolun.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joolun.system.domain.PayOrder;

/**
 * 课程订单Mapper接口
 * 
 * @author joolun
 * @date 2025-07-07
 */
public interface PayOrderMapper extends BaseMapper<PayOrder>
{
    /**
     * 查询课程订单
     * 
     * @param id 课程订单主键
     * @return 课程订单
     */
    public PayOrder selectPayOrderById(Long id);

    /**
     * 查询课程订单列表
     * 
     * @param payOrder 课程订单
     * @return 课程订单集合
     */
    public List<PayOrder> selectPayOrderList(PayOrder payOrder);

    /**
     * 新增课程订单
     * 
     * @param payOrder 课程订单
     * @return 结果
     */
    public int insertPayOrder(PayOrder payOrder);

    /**
     * 修改课程订单
     * 
     * @param payOrder 课程订单
     * @return 结果
     */
    public int updatePayOrder(PayOrder payOrder);

    /**
     * 删除课程订单
     * 
     * @param id 课程订单主键
     * @return 结果
     */
    public int deletePayOrderById(Long id);

    /**
     * 批量删除课程订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePayOrderByIds(Long[] ids);
}
